package model.login;

import java.sql.SQLException;
import java.util.HashMap;

import model.vo.MemberVO;

import com.ibatis.sqlmap.client.SqlMapClient;

public class LoginDao {
	private SqlMapClient sqlMapClient;

	public void setSqlMapClient(SqlMapClient sqlMapClient) {
		this.sqlMapClient = sqlMapClient;
	}
	public String loginCheck(MemberVO mvo) throws SQLException {
		return (String) sqlMapClient.queryForObject("member.loginCheck",mvo);
	}
	public void loginHistoryWrite(MemberVO mvo) throws SQLException {
		sqlMapClient.insert("member.loginHistoryWrite", mvo);
	}

}
